package com.yicong.ants.bean.coin;

/**
 * @author cch
 * @version 2020/7/16
 */
public class StockRecord {
    String type_text;
    String type;
    String create_time;
    String amount;
    String symbol_amount;
    String last_amount;
    String trade_sn;

    public StockRecord() {
    }

    public String getType_text() {
        return this.type_text;
    }

    public String getType() {
        return this.type;
    }

    public String getCreate_time() {
        return this.create_time;
    }

    public String getAmount() {
        return this.amount;
    }

    public String getSymbol_amount() {
        return this.symbol_amount;
    }

    public String getLast_amount() {
        return this.last_amount;
    }

    public String getTrade_sn() {
        return this.trade_sn;
    }

    public void setType_text(String type_text) {
        this.type_text = type_text;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public void setSymbol_amount(String symbol_amount) {
        this.symbol_amount = symbol_amount;
    }

    public void setLast_amount(String last_amount) {
        this.last_amount = last_amount;
    }

    public void setTrade_sn(String trade_sn) {
        this.trade_sn = trade_sn;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof StockRecord)) return false;
        final StockRecord other = (StockRecord) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$type_text = this.getType_text();
        final Object other$type_text = other.getType_text();
        if (this$type_text == null ? other$type_text != null : !this$type_text.equals(other$type_text))
            return false;
        final Object this$type = this.getType();
        final Object other$type = other.getType();
        if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
        final Object this$create_time = this.getCreate_time();
        final Object other$create_time = other.getCreate_time();
        if (this$create_time == null ? other$create_time != null : !this$create_time.equals(other$create_time))
            return false;
        final Object this$amount = this.getAmount();
        final Object other$amount = other.getAmount();
        if (this$amount == null ? other$amount != null : !this$amount.equals(other$amount))
            return false;
        final Object this$symbol_amount = this.getSymbol_amount();
        final Object other$symbol_amount = other.getSymbol_amount();
        if (this$symbol_amount == null ? other$symbol_amount != null : !this$symbol_amount.equals(other$symbol_amount))
            return false;
        final Object this$last_amount = this.getLast_amount();
        final Object other$last_amount = other.getLast_amount();
        if (this$last_amount == null ? other$last_amount != null : !this$last_amount.equals(other$last_amount))
            return false;
        final Object this$trade_sn = this.getTrade_sn();
        final Object other$trade_sn = other.getTrade_sn();
        if (this$trade_sn == null ? other$trade_sn != null : !this$trade_sn.equals(other$trade_sn))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof StockRecord;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $type_text = this.getType_text();
        result = result * PRIME + ($type_text == null ? 43 : $type_text.hashCode());
        final Object $type = this.getType();
        result = result * PRIME + ($type == null ? 43 : $type.hashCode());
        final Object $create_time = this.getCreate_time();
        result = result * PRIME + ($create_time == null ? 43 : $create_time.hashCode());
        final Object $amount = this.getAmount();
        result = result * PRIME + ($amount == null ? 43 : $amount.hashCode());
        final Object $symbol_amount = this.getSymbol_amount();
        result = result * PRIME + ($symbol_amount == null ? 43 : $symbol_amount.hashCode());
        final Object $last_amount = this.getLast_amount();
        result = result * PRIME + ($last_amount == null ? 43 : $last_amount.hashCode());
        final Object $trade_sn = this.getTrade_sn();
        result = result * PRIME + ($trade_sn == null ? 43 : $trade_sn.hashCode());
        return result;
    }

    public String toString() {
        return "StockRecord(type_text=" + this.getType_text() + ", type=" + this.getType() + ", create_time=" + this.getCreate_time() + ", amount=" + this.getAmount() + ", symbol_amount=" + this.getSymbol_amount() + ", last_amount=" + this.getLast_amount() + ", trade_sn=" + this.getTrade_sn() + ")";
    }
}
